package example.simple_mindmap.consistency;

/**
 * @Program: 8.mindmap
 * @Author: 海里的鱼
 * @Create: 2024-08-28 09:30
 * @Name: 数据类型
 * @Desc:
 */
public enum DataType {
    MYSQL         (1,"MySQL","mysql.send"),
    ELASTICSEARCH (2,"ES","es.send"),
    REDIS         (3,"Redis","redis.send");

    private int code;
    private String meessage;
    private String routKey;
    private String exchangeName;

    DataType(int code, String meessage, String routKey) {
        this.code = code;
        this.meessage = meessage;
        this.routKey = routKey;
        this.exchangeName = "consistency.direct";
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return meessage;
    }

    public String getRoutKey() {
        return routKey;
    }

    public String getExchangeName() {
        return exchangeName;
    }
}
